package com.lwb.eduorder.client;


import com.lwb.commonutils.CourseUtilsVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "service-edu", fallback = EduServiceFileDegradeFeignClient.class)
@Component
public interface EduSeviceClient {

    //3. 根据课程id查询课程信息
    @PostMapping("/eduservice/coursefront/getCourseInfoByOrder/{courseId}")
    public CourseUtilsVo getCourseInfoByOrder(@PathVariable("courseId") String courseId);
}
